﻿<br />
<div class="code">
&#64;model&nbsp;AttrModel<br />
<br />
&lt;p&gt;Image&nbsp;location&nbsp;and&nbsp;title&nbsp;<span class="Keyword">is</span>&nbsp;set&nbsp;via&nbsp;attr&nbsp;method&lt;/p&gt;<br />
&lt;img&nbsp;&#64;Html.KoAttr(<span class="String">"src"</span>,&nbsp;m&nbsp;=&gt;&nbsp;m.ImageLocation).KoAttr(<span class="String">"title"</span>,&nbsp;m&nbsp;=&gt;&nbsp;m.ImageTitle)&nbsp;/&gt;<br />
<br />
&#64;Model.ApplyBindingsScript(KoBindingOptions.IncludeData)
</div>